Optimal. Leaf size=142 \[ \frac {2 b \text {Li}_2\left (-\frac {f h-e i}{i (e+f x)}\right ) (a+b \log (c (e+f x)))}{d (f h-e i)}-\frac {\log \left (\frac {f h-e i}{i (e+f x)}+1\right ) (a+b \log (c (e+f x)))^2}{d (f h-e i)}+\frac {2 b^2 \text {Li}_3\left (-\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.38, antiderivative size = 168, normalized size of antiderivative = 1.18, number of steps used = 8, number of rules used = 8, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2411, 12, 2344, 2302, 30, 2317, 2374, 6589} \[ -\frac {2 b \text {PolyLog}\left (2,-\frac {i (e+f x)}{f h-e i}\right ) (a+b \log (c (e+f x)))}{d (f h-e i)}+\frac {2 b^2 \text {PolyLog}\left (3,-\frac {i (e+f x)}{f h-e i}\right )}{d (f h-e i)}+\frac {(a+b \log (c (e+f x)))^3}{3 b d (f h-e i)}-\frac {\log \left (\frac {f (h+i x)}{f h-e i}\right ) (a+b \log (c (e+f x)))^2}{d (f h-e i)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 30
Rule 2302
Rule 2317
Rule 2344
Rule 2374
Rule 2411
Rule 6589
Rubi steps
\begin {align*} \int \frac {(a+b \log (c (e+f x)))^2}{(h+188 x) (d e+d f x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {(a+b \log (c x))^2}{d x \left (\frac {-188 e+f h}{f}+\frac {188 x}{f}\right )} \, dx,x,e+f x\right )}{f}\\ &=\frac {\operatorname {Subst}\left (\int \frac {(a+b \log (c x))^2}{x \left (\frac {-188 e+f h}{f}+\frac {188 x}{f}\right )} \, dx,x,e+f x\right )}{d f}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {(a+b \log (c x))^2}{x} \, dx,x,e+f x\right )}{d (188 e-f h)}+\frac {188 \operatorname {Subst}\left (\int \frac {(a+b \log (c x))^2}{\frac {-188 e+f h}{f}+\frac {188 x}{f}} \, dx,x,e+f x\right )}{d f (188 e-f h)}\\ &=\frac {\log \left (-\frac {f (h+188 x)}{188 e-f h}\right ) (a+b \log (c (e+f x)))^2}{d (188 e-f h)}-\frac {\operatorname {Subst}\left (\int x^2 \, dx,x,a+b \log (c (e+f x))\right )}{b d (188 e-f h)}-\frac {(2 b) \operatorname {Subst}\left (\int \frac {(a+b \log (c x)) \log \left (1+\frac {188 x}{-188 e+f h}\right )}{x} \, dx,x,e+f x\right )}{d (188 e-f h)}\\ &=\frac {\log \left (-\frac {f (h+188 x)}{188 e-f h}\right ) (a+b \log (c (e+f x)))^2}{d (188 e-f h)}-\frac {(a+b \log (c (e+f x)))^3}{3 b d (188 e-f h)}+\frac {2 b (a+b \log (c (e+f x))) \text {Li}_2\left (\frac {188 (e+f x)}{188 e-f h}\right )}{d (188 e-f h)}-\frac {\left (2 b^2\right ) \operatorname {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {188 x}{-188 e+f h}\right )}{x} \, dx,x,e+f x\right )}{d (188 e-f h)}\\ &=\frac {\log \left (-\frac {f (h+188 x)}{188 e-f h}\right ) (a+b \log (c (e+f x)))^2}{d (188 e-f h)}-\frac {(a+b \log (c (e+f x)))^3}{3 b d (188 e-f h)}+\frac {2 b (a+b \log (c (e+f x))) \text {Li}_2\left (\frac {188 (e+f x)}{188 e-f h}\right )}{d (188 e-f h)}-\frac {2 b^2 \text {Li}_3\left (\frac {188 (e+f x)}{188 e-f h}\right )}{d (188 e-f h)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.24, size = 189, normalized size = 1.33 \[ \frac {3 a^2 \log (e+f x)-3 a^2 \log (h+i x)-6 b \text {Li}_2\left (\frac {i (e+f x)}{e i-f h}\right ) (a+b \log (c (e+f x)))-6 a b \log (c (e+f x)) \log \left (\frac {f (h+i x)}{f h-e i}\right )+3 a b \log ^2(c (e+f x))-3 b^2 \log ^2(c (e+f x)) \log \left (\frac {f (h+i x)}{f h-e i}\right )+b^2 \log ^3(c (e+f x))+6 b^2 \text {Li}_3\left (\frac {i (e+f x)}{e i-f h}\right )}{3 d (f h-e i)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.41, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {b^{2} \log \left (c f x + c e\right )^{2} + 2 \, a b \log \left (c f x + c e\right ) + a^{2}}{d f i x^{2} + d e h + {\left (d f h + d e i\right )} x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b \log \left ({\left (f x + e\right )} c\right ) + a\right )}^{2}}{{\left (d f x + d e\right )} {\left (i x + h\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.08, size = 383, normalized size = 2.70 \[ \frac {b^{2} \ln \left (\frac {\left (c f x +c e \right ) i}{-c e i +c f h}+1\right ) \ln \left (c f x +c e \right )^{2}}{\left (e i -f h \right ) d}-\frac {b^{2} \ln \left (c f x +c e \right )^{3}}{3 \left (e i -f h \right ) d}+\frac {2 a b \ln \left (\frac {-c e i +c f h +\left (c f x +c e \right ) i}{-c e i +c f h}\right ) \ln \left (c f x +c e \right )}{\left (e i -f h \right ) d}-\frac {a b \ln \left (c f x +c e \right )^{2}}{\left (e i -f h \right ) d}+\frac {2 b^{2} \polylog \left (2, -\frac {\left (c f x +c e \right ) i}{-c e i +c f h}\right ) \ln \left (c f x +c e \right )}{\left (e i -f h \right ) d}+\frac {a^{2} \ln \left (-c e i +c f h +\left (c f x +c e \right ) i \right )}{\left (e i -f h \right ) d}-\frac {a^{2} \ln \left (c f x +c e \right )}{\left (e i -f h \right ) d}+\frac {2 a b \dilog \left (\frac {-c e i +c f h +\left (c f x +c e \right ) i}{-c e i +c f h}\right )}{\left (e i -f h \right ) d}-\frac {2 b^{2} \polylog \left (3, -\frac {\left (c f x +c e \right ) i}{-c e i +c f h}\right )}{\left (e i -f h \right ) d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.73, size = 331, normalized size = 2.33 \[ a^{2} {\left (\frac {\log \left (f x + e\right )}{d f h - d e i} - \frac {\log \left (i x + h\right )}{d f h - d e i}\right )} - \frac {{\left (\log \left (f x + e\right )^{2} \log \left (\frac {f i x + e i}{f h - e i} + 1\right ) + 2 \, {\rm Li}_2\left (-\frac {f i x + e i}{f h - e i}\right ) \log \left (f x + e\right ) - 2 \, {\rm Li}_{3}(-\frac {f i x + e i}{f h - e i})\right )} b^{2}}{{\left (f h - e i\right )} d} - \frac {2 \, {\left (b^{2} \log \relax (c) + a b\right )} {\left (\log \left (f x + e\right ) \log \left (\frac {f i x + e i}{f h - e i} + 1\right ) + {\rm Li}_2\left (-\frac {f i x + e i}{f h - e i}\right )\right )}}{{\left (f h - e i\right )} d} - \frac {{\left (b^{2} \log \relax (c)^{2} + 2 \, a b \log \relax (c)\right )} \log \left (i x + h\right )}{{\left (f h - e i\right )} d} + \frac {b^{2} \log \left (f x + e\right )^{3} + 3 \, {\left (b^{2} \log \relax (c) + a b\right )} \log \left (f x + e\right )^{2} + 3 \, {\left (b^{2} \log \relax (c)^{2} + 2 \, a b \log \relax (c)\right )} \log \left (f x + e\right )}{3 \, {\left (f h - e i\right )} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (a+b\,\ln \left (c\,\left (e+f\,x\right )\right )\right )}^2}{\left (h+i\,x\right )\,\left (d\,e+d\,f\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {a^{2}}{e h + e i x + f h x + f i x^{2}}\, dx + \int \frac {b^{2} \log {\left (c e + c f x \right )}^{2}}{e h + e i x + f h x + f i x^{2}}\, dx + \int \frac {2 a b \log {\left (c e + c f x \right )}}{e h + e i x + f h x + f i x^{2}}\, dx}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________